import cv2
import numpy as np


def main(a='image0.jpg'):
    img = cv2.imread(a, 1)
    cv2.imshow('src', img)
    imgInfo = img.shape
    height = imgInfo[0]
    width = imgInfo[1]
    deep = imgInfo[2]

    dst = np.zeros([height*2, width, deep], np.uint8)

    for i in range(height):
        for j in range(width):
            dst[i, j] = img[i, j]
            dst[height*2-i-1, j] = img[i, j]

    for i in range(width):
        dst[height, i] = (0, 0, 255)
    cv2.imshow('image', dst)
    cv2.waitKey(0)


if __name__ == "__main":
    main()